import request from '@/utils/request'

// 首页轮播图
export const swiper = () => {
  return request.get('/home/swiper')
}

// 租房小组
export const getRentalGroup = () => {
  return request.get(`/home/groups?area=${'AREA|88cff55c-aaa4-e2e0'}`)
}

// 最新资讯
export const getNewsList = () => {
  return request.get(`/home/news?area=${'AREA|88cff55c-aaa4-e2e0'}`)
}

// 路径封装
export const imgStitching = (array) => {
  return array.map(item => {
    item.imgSrc = 'http://124.223.73.204:8080' + item.imgSrc
    return item
  })
}
